package com.lifesting.front;

import com.sun.facelets.tag.MetaRule;
import com.sun.facelets.tag.Metadata;
import com.sun.facelets.tag.MetadataTarget;
import com.sun.facelets.tag.TagAttribute;

public class DsRule extends MetaRule {

	@Override
	public Metadata applyRule(String name, TagAttribute attribute,
			MetadataTarget meta) {
		if (meta.isTargetInstanceOf(DataScroller.class))
		{
			if ("tableFor".equals(name))
			{
				return new RnsRule.TableForMetaData(attribute.getValue());
			}
		}
		return null;
	}

}
